<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets" >
	  <f:view contentType="text/html"/>
	  	
	<h:body>
		<ui:composition template="_template.xhtml">
			<ui:define name="conteudo">
				<div id="blocoConteudo">
				<div class="container">
					<h2>Sistema de Cadastro de Requisitos - Técnica REMO (v4)</h2>
					<br /><br />
					<h:form id="dados">
					<fieldset>
					<legend>Efetuar Login</legend>
					
					<h:panelGrid columns="2">
					<center>
                		<h:outputText value="Usuário ou senha incorretos!" rendered="#{param.erro}" style="color: darkred"/>
            		</center>
						<h:outputLabel value="Login: " for="login"/>
						<h:inputText id="login" 
									 value="#{loginBean.usuario.login}"/>
									 
						<h:outputLabel value="Senha: " for="senha"/>
						<h:inputSecret id="senha" 
									 value="#{loginBean.usuario.senha}"/>
						<br></br><br />
						<h:messages id="msgErro" style="color: red"/>	
						<br /><br />
						<center>		 
							<h:commandButton value="Efetuar login"
								action="#{loginBean.efetuarLogin}" />
						</center>
					</h:panelGrid>
					</fieldset>
					</h:form>
				</div>
				</div>
			</ui:define>
		</ui:composition>
	</h:body>
</html>